if(USE_GRAPHICS STREQUAL "GTK")
    pkg_check_modules(CAIRO REQUIRED cairo>=1.4)
    pkg_check_modules(GTK REQUIRED gtk+-2.0>=2.8)
    pkg_check_modules(GAIL REQUIRED gail)
    set(GRAPHICS_INCLUDE_DIRS ${GTK_INCLUDE_DIRS} ${GAIL_INCLUDE_DIRS})
    set(GRAPHICS_LIBRARIES ${GTK_LDFLAGS} ${GAIL_LDFLAGS})

    set(USE_GRAPHICS_GTK TRUE)
    mark_as_advanced(USE_GRAPHICS_GTK)

    set(REQUIREMENT "gtk+-2.0 >= 2.8")
endif(USE_GRAPHICS STREQUAL "GTK")

if(USE_GRAPHICS STREQUAL "QT")
    FIND_PACKAGE(Qt4)
    pkg_check_modules(QTGRAPHIC REQUIRED QtGui)
    set(GRAPHICS_INCLUDE_DIRS ${QTGRAPHIC_INCLUDE_DIRS})
    set(GRAPHICS_LIBRARIES ${QTGRAPHIC_LDFLAGS})

    set(USE_GRAPHICS_QT TRUE)
    mark_as_advanced(USE_GRAPHICS_QT)
endif(USE_GRAPHICS STREQUAL "QT")

if(USE_GRAPHICS STREQUAL "SDL")
    pkg_check_modules(SDL REQUIRED sdl>=1.2.10)
    include(FindSDL_gfx)
    set(GRAPHICS_INCLUDE_DIRS ${SDL_INCLUDE_DIRS} ${SDLGFX_INCLUDE_DIR})
    set(GRAPHICS_LIBRARIES ${SDL_LDFLAGS} ${SDLGFX_LIBRARY})

    set(USE_GRAPHICS_SDL TRUE)
    mark_as_advanced(USE_GRAPHICS_SDL)
    
    set(REQUIREMENT "sdl >= 1.2.10")
endif(USE_GRAPHICS STREQUAL "SDL")



# Joaquim - OWB SKIA Porting
if(USE_GRAPHICS STREQUAL "SKIA")
	# SDL for screen an keys handlers
    pkg_check_modules(SDL REQUIRED sdl>=1.2.10)
    
	# Falta verificar a validar a lib SKIA
	
	set(SKIA_INCLUDE_DIR /home/joaquim/Developer/skia-read-only/include/animator;/home/joaquim/Developer/skia-read-only/include/config;/home/joaquim/Developer/skia-read-only/include/core;/home/joaquim/Developer/skia-read-only/include/effects;/home/joaquim/Developer/skia-read-only/include/images;/home/joaquim/Developer/skia-read-only/include/utils;/home/joaquim/Developer/skia-read-only/include/views )
	set(SKIA_LIBRARY /home/joaquim/Developer/skia-read-only/out/libskia.a )
	
    set(GRAPHICS_INCLUDE_DIRS ${SDL_INCLUDE_DIRS} ${SKIA_INCLUDE_DIR})
    set(GRAPHICS_LIBRARIES ${SDL_LDFLAGS} ${SKIA_LIBRARY})

    set(USE_GRAPHICS_SKIA TRUE)
    mark_as_advanced(USE_GRAPHICS_SKIA)
    
    set(REQUIREMENT "sdl >= 1.2.10")
endif(USE_GRAPHICS STREQUAL "SKIA")
